<?php
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH',
        realpath(dirname(dirname(__FILE__)) . '/application'));

defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
        (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'developer'));

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(dirname(dirname(__FILE__)) . '/library'),
    get_include_path(),
)));

define('CONFIG_PATH', realpath(APPLICATION_PATH . '/configs'));
define('TEMPLATE_PATH', realpath(dirname(__FILE__) . '/templates'));
define('UPLOAD_PATH', realpath(dirname(__FILE__) . '/upload'));
